package io.vincentwinner.systeminfoapi.controller;

import io.vincentwinner.systeminfoapi.ContentDispatcher;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/page")
public class CommonPageController {

    @RequestMapping("/commonPage")
    public ModelAndView common(){
        return ContentDispatcher.forward("/common.html");
    }

    @RequestMapping("/osPage")
    public ModelAndView os(){
        return ContentDispatcher.forward("/os.html");
    }

    @RequestMapping("/cpuPage")
    public ModelAndView cpu(){
        return ContentDispatcher.forward("/cpu.html");
    }

    @RequestMapping("/memoryPage")
    public ModelAndView memory(){
        return ContentDispatcher.forward("/memory.html");
    }

    @RequestMapping("/diskPage")
    public ModelAndView disk(){
        return ContentDispatcher.forward("/disk.html");
    }

}
